<?php use_helper('yougoDate') ?>
<?php use_javascript('requests-validation.js') ?>

<?php slot('title', __('Validate requests')) ?>
<?php slot('options') ?>
    <?php include_partial('pageLinks', array('route' => 'requests_validation_page', 'page' => $page)) ?>
<?php end_slot() ?>

<?php include_partial('statusFormFilter', array('form' => $form, 'page' => $page)) ?>

<table class="calendar">
    <thead>
        <?php include_partial('calendarHeader', array('calendar' => $calendar, 'admin' => true)) ?>
    </thead>
    <tbody>
        <?php foreach ($detailedUsers as $detailedUser): ?>
            <?php include_partial('calendarRequestsLine', array(
                'calendar'      => $calendar,
                'requests'      => $detailedUser->requests,
                'admin'         => true,
                'user'          => $detailedUser,
                'requestTypes'  => $requestTypes)) ?>
        <?php endforeach ?>
    </tbody>
</table>